import json


def build_data(file_path):
    # 1.读取json文件
    with open(file_path, "r", encoding="utf-8") as f:
        data = json.load(f)
        # 2.将json 数据转换为参数化需要的数据格式  [(),(),()]
        new_list = []
        for item in data:
            new_list.append(tuple(item.values()))
        return new_list


if __name__ == '__main__':
    data = build_data("../data/login_data.json")
    print(data)